*{
    margin: 0;
    padding: 0;
}
a{
    text-decoration: none;
}
li{
    list-style: none;
}
img{
    vertical-align: middle;
    border: none;
}
body{
    background-color: #f9f9f9;
}

.box{
    width: 854px;
    height: 500px;
    padding-bottom: 80px;
    background-color: #fff;
    margin: 50px auto 0;
    position: relative;
}


.box .main{
    padding-top: 30px;
    padding-bottom: 10px;
    width: 854px;
    height: 550px;
    position: relative;
}

.box .main .logo{
    height: 44px;
    width: 100%;
    padding-bottom: 20px;
}
.box .main .logo em{
    display: block;
    width: 49px;
    height: 49px;
    background: url(https://account.xiaomi.com/static/res/349d9c1/account-static/respassport/acc-2014/img/milogo.png) no-repeat;
    margin: 0 auto;
}

.box .main h1{
    text-align: center;
    font-size: 23px;
    font-weight: normal;
}

.box .main .form-first{
    width: 332px;
    margin: 0 auto;
    padding: 30px 0;
    position: relative;
}

.box .main .form-first input{
    width: 317px;
    height: 42px;
    border: none;
    border: 1px solid #ddd;
    outline: none;
    padding-left: 15px;
}

.box .main .form-first #name-tip{
    font-size: 14px;
    color: red;
    display: none;
    position: absolute;
}

.box .main .form-first #password{
    padding-left: 10px;
    width: 324px;
    margin-bottom: 5px;
}
.box .main .form-first #psw-tip{
    font-size: 14px;
    display: none;
    position: absolute;
}

.box .main .form-first #btn{
    width: 334px;
    height: 42px;
    background-color: #ff6700;
    color: #fff;
    border: none;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    outline: none;
}
.box .main .form-first .mask{
    width: 334px;
    height: 42px;
    position: absolute;
    background-color:rgba(255,255,255,0);
    left: 0;
    top: 0;
}
.box .main .form-first #btn:hover .mask{
    background-color:rgba(255,255,255,0.5);
}
.box .main .register{
    margin-top: 30px;
}
.box .main .register p{
    text-align: center;
    font-size: 14px;
    color: #ddd;
}
.box .main .register p a{
    color: #9d9d9d;
}
.box .main .register p a:hover{
    color: orange;
}
.box .main .other_login{
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    color: #9d9d9d;
}
.box .main .other_login em{
    display: inline-block;
    height: 1px;
    width: 150px;
    background-color: #ddd;
    margin-bottom: 5px;
}

.box .main .login_pic{
    text-align: center;
    margin-top: 20px;
}
.box .main .login_pic a{
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 0 12px;
    border-radius: 50%;
    
}
.box .main .login_pic a i{
    display: block;
    width: 18px;
    height: 18px;
    background:url(https://account.xiaomi.com/static/res/166d6dc/account-static/respassport/acc-2014/img/icons_type.png) no-repeat;
    margin: 4px auto 0;
}

.box .main .login_pic a:nth-of-type(1){
    background-color: #0288d1;
}
.box .main .login_pic a:nth-of-type(1) i{
    background-position: -19px 0;
}
.box .main .login_pic a:nth-of-type(2){
    background-color: #d32f2f;
}
.box .main .login_pic a:nth-of-type(2) i{
    background-position: -38px 0;
}
.box .main .login_pic a:nth-of-type(3){
    background-color: #0ae;
}
.box .main .login_pic a:nth-of-type(3) i{
    margin-top: 6px;
    margin-left: 4px;
    width: 25px;
    background-position: -57px 0;
}
.box .main .login_pic a:nth-of-type(4){
    background-color: #00d20d;
}
.box .main .login_pic a:nth-of-type(4) i{
    margin-top: 6px;
    width: 24px;
    background-position: -83px 0;
}

// bottom

.bottom{
    height: 80px;
    text-align: center;
}

.bottom p{
    font-size: 14px;
    color: #9d9d9d;
    margin: 10px 0;
}
.bottom p a{
    color: #9d9d9d;
}
.bottom p a:hover{
    color: #333;
}